<extend name="Index/index"/>

<block name="content">
    <!--<div class="view-product" style="margin-top: 50px">-->
        <div class="info-center">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con">{{$title}}</h6>
            </div>
            <a href="{{$prevUrls}}" class="layui-btn layui-btn-normal" style="margin: 20px 0 0 20px">返回上一页</a>
            <div class="layui-container" style="margin-top: 20px; font-size: 20px">
                <!--id-->
                <div class="layui-row">
                    <!--<div class="demoTable">-->
                        <!--<a href="{{$prevUrls}}" class="layui-btn layui-btn-normal">返回上一页</a>-->
                    <!--</div>-->
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">ID:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">{{$userInfo['id']}}</div>
                    </div>
                </div>
                <!--用户名-->
                <div class="layui-row"  style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">用户名:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">{{$userInfo.name}}</div>
                    </div>
                </div>
                <!--性别-->
                <div class="layui-row" style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">性别:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">{{$userInfo['sex'] == 0 ? "女" : "男"}}</div>
                    </div>
                </div>
                <!--职位-->
                <div class="layui-row" style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">职位:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">{{$userInfo.category_name}}</div>
                    </div>
                </div>
                <neq name="userInfo.group_name" value="">
                    <div class="layui-row" style="margin-top: 20px">
                        <div class="layui-col-xs2">
                            <div class="grid-demo grid-demo-bg1 text-right">小组:</div>
                        </div>
                        <div class="layui-col-xs-offset1 layui-col-xs4">
                            <div class="grid-demo">{{$userInfo.group_name}}</div>
                        </div>
                    </div>
                </neq>
                <!--状态-->
                <div class="layui-row" style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">状态:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">{{$userInfo['status'] == 0 ? "预备党员" : "正式党员"}}</div>
                    </div>
                </div>
                <!--级别-->
                <div class="layui-row" style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">级别:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">
                            <php>$star = $userInfo['level']%5;</php>
                            <php>$jewel = floor($userInfo['level']/5);</php>

                            <neq name="jewel" value="0">
                                <for start="0" end="$jewel">
                                    <i class="layui-icon" style="color: red;">&#xe735;</i>&nbsp;
                                </for>
                            </neq>
                            <neq name="star" value="0">
                                <for start="0" end="$star">
                                    <i class="layui-icon" style="color: red">&#xe658;</i>&nbsp;
                                </for>
                            </neq>
                        </div>
                    </div>
                </div>
                <!--入党时间-->
                <div class="layui-row"  style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">入党时间:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">
                            <eq name="userInfo['join_time']" value="0000-00-00 00:00:00">
                                未入党
                            <else/>
                                {{:substr($userInfo['join_time'],0,10)}}
                            </eq>
                            <!--{{:strtotime($userInfo['join_time'])}}-->
                        </div>
                    </div>
                </div>
                <!--身份证号-->
                <div class="layui-row"  style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">身份证号:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">{{$userInfo.card_num}}</div>
                    </div>
                </div>

                <div class="layui-row"  style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">手机号:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">{{$userInfo.tel}}</div>
                    </div>
                </div>
                <!--党费缴纳至-->
                <div class="layui-row"  style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right">党费缴纳至:</div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">
                            <eq name="userInfo['join_time']" value="0000-00-00 00:00:00">
                                未缴纳过党费
                            <else/>
                                {{:substr($userInfo['fee_time'],0,7)}}
                            </eq>

                        </div>
                    </div>
                </div>
                <div class="layui-row text-right"  style="margin-top: 20px">
                    <div class="layui-col-xs2">
                        <div class="grid-demo grid-demo-bg1 text-right"></div>
                    </div>
                    <div class="layui-col-xs-offset1 layui-col-xs4">
                        <div class="grid-demo">
                            <a href="{{:U('User/userEdit',array('id'=>$userInfo['id']))}}" class="btn btn-success">编辑</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    <!--</div>-->

</block>